import 'package:flutter/material.dart';
import 'package:oramemo/pages/setting/widgets/custom_app_bar.dart';

class GradientBackground extends StatelessWidget {
  final Widget? child;

  const GradientBackground({super.key, required this.child});

  @override
  Widget build(BuildContext context) {
    return Container(
        decoration: const BoxDecoration(
          gradient: LinearGradient(
            begin: Alignment.centerLeft,
            end: Alignment.centerRight,
            colors: [
              Color(0XFFCDE1F9),
              Color(0XFFD2F2EF),
            ],
          ),
        ),
        child: Container(
            decoration: const BoxDecoration(
              gradient: LinearGradient(
                begin: Alignment.topCenter,
                end: Alignment.bottomCenter,
                colors: [
                  Color(0X00F3F6F9),
                  Color(0XffF3F6F9),
                  Color(0XffF3F6F9),
                ],
              ),
            ),
            child: child));
  }
}
